#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using UTable.Objects;
using System.Windows.Media.Animation;
using UTable.Input;
using UTable.ObjectManager;

namespace UTable
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class AppWindow : Window
    {
        public AppWindow()
        {
            InitializeComponent();
            // Full Screen
            this.WindowStyle = WindowStyle.None;
            this.AllowsTransparency = true;
            this.WindowState = WindowState.Maximized;
            this.Loaded += new RoutedEventHandler(AppWindow_Loaded);
            Window window = this.Owner;
        }

        void AppWindow_Loaded(object sender, RoutedEventArgs e)
        {
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // Create Keyframe
            SplineDoubleKeyFrame endKeyframe = new SplineDoubleKeyFrame();
            endKeyframe.Value = 0.2;
            endKeyframe.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromSeconds(1));

            KeySpline ks = new KeySpline();
            ks.ControlPoint1 = new Point(0, 1);
            ks.ControlPoint2 = new Point(1, 1);

            // Create Animation
            DoubleAnimationUsingKeyFrames angleAnimtion = new DoubleAnimationUsingKeyFrames();
            angleAnimtion.KeyFrames.Add(endKeyframe);

            // host.BeginAnimation(FrameworkElement.OpacityProperty, angleAnimtion);
        }
    }
}
